﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using slTestingStreaming.Framework;


namespace slTestingStreaming.Model.DTO
{
    //[Serializable]
    public class User:Bindable    //: ICustomBinarySerializable
    {
        public string UserName { get; set; }
        public string Password { get; set; }

        public string Lat { get; set; }
        public string Lon { get; set; }

        public string SessionID { get; set; }
        public string Topic { get; set; }
        public DateTime LastHeartBeat { get; set; }

        
        //public void WriteDataTo(System.IO.BinaryWriter _Writer)
        //{
        //    _Writer.Write((string)UserName);
        //    _Writer.Write((string)Password);
        //}

        //public void SetDataFrom(System.IO.BinaryReader _Reader)
        //{
        //    UserName = _Reader.ReadString();
        //    Password = _Reader.ReadString();
        //}

        
    }


    public class StreamingUser : User //, ICustomBinarySerializable
    {
        public bool IsStreaming { get; set; }
        public string Keywords { get; set; }


        
        //void ICustomBinarySerializable.WriteDataTo(System.IO.BinaryWriter _Writer)
        //{
        //    _Writer.Write((bool)IsStreaming);
        //    base.WriteDataTo(_Writer);
        //}

        //void ICustomBinarySerializable.SetDataFrom(System.IO.BinaryReader _Reader)
        //{
        //    IsStreaming = _Reader.ReadBoolean();
        //    base.SetDataFrom(_Reader);
        //}

    }
}
